package com.zgkxzx.java.mutilThread;

import android.util.Log;
import android.util.TimeUtils;

import java.sql.Time;
import java.util.concurrent.TimeUnit;

/**
 * 创建者 zgkxzx
 * 日期   12/28/17
 * 描述
 */

public class BankThread extends Thread {
    private Account account;


    public BankThread(Account account) {
        this.account = account;
    }


    @Override
    public void run() {
        //super.run();
        try {
            account.add5(getName(), 1);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
